﻿@model ContactManagement.Models.EditUserModel
@{
    ViewBag.Title = PageTitles.UserDetailsRESX;
}

<div class="span12">
    <h2>@PageTitles.DetailsRESX - @PageTitles.UserDetailsRESX</h2>
    <hr />
</div>
<div class="span12">
    <form class="form-horizontal">
        <fieldset>
            <div class="control-group">
                <label class="control-label">
                    @Html.DisplayNameFor(model => model.UserTitle)
                </label>
                <div class="controls">
                    <span class="input-xlarge uneditable-input">@* ACHTUNG es gibt eine Extra Helper Methode die den Namen der Kategorie anzeigt. *@
                        @Html.Categories().DisplayForCategory(Model.UserTitle)
                    </span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    @Html.DisplayNameFor(model => model.UserName)
                </label>
                <div class="controls">
                    <span class="input-xlarge uneditable-input">
                        @Html.DisplayFor(model => model.UserName)
                    </span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    @Html.DisplayNameFor(model => model.Firstname)
                </label>
                <div class="controls">
                    <span class="input-xlarge uneditable-input">
                        @Html.DisplayFor(model => model.Firstname)
                    </span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    @Html.DisplayNameFor(model => model.Lastname)
                </label>
                <div class="controls">
                    <span class="input-xlarge uneditable-input">
                        @Html.DisplayFor(model => model.Lastname)
                    </span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    @Html.DisplayNameFor(model => model.Handy)
                </label>
                <div class="controls">
                    <span class="input-xlarge uneditable-input">
                        @Html.DisplayFor(model => model.Handy)
                    </span>
                </div>
            </div>
            <div class="control-group">
                <label class="control-label">
                    @Html.DisplayNameFor(model => model.Birthdate)
                </label>
                <div class="controls">
                    <span class="input-xlarge uneditable-input">
                        @Html.DisplayFor(model => model.Birthdate)
                    </span>
                </div>
            </div>
        </fieldset>
    </form>
</div>

<div class="span12">
    <div class="well">
        @* Hier werden keine Rechte geprüft, da es sich um Funktionen handelt die Jeder User mit seinen Eigenen Daten durchführen darf. *@
        @Html.ActionLink(Navigation.BackToStartpageRESX, EActionHome.Index.ToString(), EControllers.Home.ToString(),null, new { @class = "btn btn-small", data_icon = "icon-arrow-left" })
        @Html.ActionLink(Navigation.EditUserRESX, EActionUser.Edit.ToString(), new { id = Model.UserId }, new { @class = "btn btn-small" })
        @Html.ActionLink(Navigation.ChangePasswordRESX, EActionUser.ChangePassword.ToString(), EControllers.User.ToString(), new { @class = "btn btn-small" })
    </div>
</div>
